package com.yk.airline.service.city.impl;

import com.yk.airline.dao.city.api.ICityDao;
import com.yk.airline.model.CityModel;
import com.yk.airline.service.city.api.ICityService;
import com.yk.airline.service.common.impl.CommonServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Project Name:airlinecrawler
 * File Name:CityServiceImpl
 * Package Name:com.yk.airline.service.cityservice.impl
 * Date:2018/1/31 11:31
 * Author:dengtianjia
 * Description:
 * Copyright (c) 2018, 重庆云凯科技有限公司 All Rights Reserved.
 */
@Service("cityService")
public class CityServiceImpl extends CommonServiceImpl<CityModel> implements ICityService {

    @Resource(name = "cityDao")
    private ICityDao cityDao;

    @Override
    public List<CityModel> findAll() {
        return cityDao.findAll();
    }

    @Override
    public int findTotalCount() {
        return cityDao.findTotalCount();
    }
}
